package org.wak.gui.events
{
	import flash.events.Event;
	
	import org.wak.inventory.InventoryItem;

	public class GuiEvent extends Event
	{
		public static const ACTION_SELECTED:String = "action_selected" ; 
		
		public static const INVENTORY_ITEM_SELECTED:String = "inventory_item_selected" ;
		public static const INVENTORY_ITEM_OVER:String = "inventory_item_over" ;
		public static const INVENTORY_ITEM_OUT:String = "inventory_item_out" ;
		
		public static const INVENTORY_CLOSED:String = "inventory_closed" ;
		
		private var mButtonId:String = "" ;
		
		private var mInventoryItem:InventoryItem = null ;
		
		public function GuiEvent(type:String, pButtonId:String="", pInventoryItem:InventoryItem = null, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			mButtonId = pButtonId ;
			mInventoryItem = pInventoryItem ;
		}
		
		public function get buttonId():String
		{
			return mButtonId ;	
		}
		
		public function get inventoryItem():InventoryItem
		{
			return mInventoryItem ;
		}
		
	}
}